<!DOCTYPE html "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">


<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">分类名称：</label>
                            <div class="col-sm-10">
                                <input id="couponName" name="couponName" th:value="${couponCfgInfo.couponName}"
                                       class="form-control" type="text" readonly="readonly">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">抵扣金额：</label>
                            <div class="col-sm-10">
                                <input type="text" id="discountAmt" name="discountAmt" th:value="${couponCfgInfo.discountAmt}"
                                       data-placeholder="抵扣金额" class="form-control" readonly="readonly" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">抵用条件：</label>
                            <div class="col-sm-10">
                                <input type="text" id="discountCondAmt" name="discountCondAmt" th:value="${couponCfgInfo.discountCondAmt}"
                                       data-placeholder="抵用条件" class="form-control" readonly="readonly" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">有效期类型：</label>
                            <div class="col-sm-10">
                                <select name="expireType" id="expireType" class="form-control"
                                        th:field="${couponCfgInfo.expireType}" disabled="disabled">
                                    <option value="">--有效期时间--</option>
                                    <option value="1">长期有效</option>
                                    <option value="0">1天</option>
                                    <option value="2">1周</option>
                                    <option value="3">15天</option>
                                    <option value="4">1个月</option>
                                    <option value="5">2个月</option>
                                    <option value="6">3个月</option>
                                    <option value="7">6个月</option>
                                    <option value="8">1年</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">优惠卷类型：</label>
                            <div class="col-sm-10">
                                <select name="couponType" id="couponType" class="form-control"
                                        th:field="${couponCfgInfo.couponType}" disabled="disabled">
                                    <option value="2">优惠卷</option>
                                    <option value="1">新人专享卷</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group" th:if="${couponCfgInfo.couponType}==1">
                            <label class="col-sm-2 control-label">优惠卷总数量：</label>
                            <div class="col-sm-10">
                                <input type="text" id="couponNum" name="couponNum"  class="form-control" readonly="readonly"
                                       maxlength="8"  th:value="${couponCfgInfo.couponNum}">
                            </div>
                        </div>

                        <div class="form-group" th:if="${couponCfgInfo.couponType}==1">
                            <label class="col-sm-2 control-label">优惠卷剩余数量：</label>
                            <div class="col-sm-10">
                                <input type="text" id="couponRemNum" name="couponRemNum"  class="form-control" readonly="readonly"
                                       maxlength="8"  th:value="${couponCfgInfo.couponRemNum}">
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
</body>
</html>